package no.mehdi.usereg.web.form;

import java.io.Serializable;
import java.util.EventListener;
import java.util.EventObject;

import org.ajax4jsf.event.PushEventListener;

public class RfidForm implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	PushEventListener listener;

	private String uuid = "";

	private boolean enabled = false;

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getUuid() {
		return uuid;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public boolean isEnabled() {
		return enabled;
	}
	public void addListener(EventListener listener) {
		synchronized (listener) {
			if (this.listener != listener) {
				this.listener = (PushEventListener) listener;
			}
		}
	}
	public void fireListener(){
		listener.onEvent(new EventObject(this));
	}
	
}
